package com.factory_strategy_template;

import org.springframework.stereotype.Component;

@Component
public class wangwuHandler extends Handler{
    public wangwuHandler() {
    }


    public void printName(){
        System.out.println("wangwu");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        HandlerFactory.registerHandler("王五",this);
    }
}
